package com.service1.db.mybatis.db2.service

import com.base.model.service1.db.Model_Service1_MyBatisDB
import com.service1.db.mybatis.db2.mapper.MyBatisDB2Mapper
import org.springframework.stereotype.Service
import java.util.*

@Service
class MyBatisDB2Service(private val myBatisDB2Mapper: MyBatisDB2Mapper) {
    fun find(id: String): ArrayList<Model_Service1_MyBatisDB> {
        return myBatisDB2Mapper.find(id)
    }

    fun update(): Boolean {
        return myBatisDB2Mapper.update(UUID.randomUUID().toString()) > 0
    }
}
